package com.ssm.test;

import com.ssm.dao.adminDao;
import com.ssm.dao.stuDao;
import com.ssm.po.Admin;
import com.ssm.po.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class serivcetest {
    public static void findBookByISBN(String ISBN) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        stuDao stuDao = applicationContext.getBean(stuDao.class);
        Student student = new Student();
        student.setId("02");
        stuDao.check(student);
        System.out.println(stuDao.check(student));
    }
    public static void main(String[] args) {
        findBookByISBN("66");
    }
}
